from PyQt4 import QtGui, QtCore
import pycute3
import lucid.core
from pydispatch import dispatcher

class PyCutePlugin(lucid.core.IViewPlugin):
   """ Viewer to display a shell of pycute3 """
   def __init__(self):
      lucid.core.IViewPlugin.__init__(self)      
      env = lucid.core.Environment()      
      self.widget = PythonShellWidget(self)

      
   @staticmethod
   def getName():
      return "Python Shell"
      
   def getViewWidget(self):
      return self.widget
   

class PythonShellWidget(pycute3.PyCute):
   def __init__(self, plugin, locals=None, log='', parent=None):
      pycute3.PyCute.__init__(self, locals, log, parent)      
      self.plugin = plugin

   